const OSS = require('ali-oss');

const client = new OSS({
  region: 'oss-cn-guangzhou',
  bucket: 'huan-233',
  accessKeyId: 'LTAI5tEZMwgjr3PHn6YFLwRX',
  accessKeySecret: 'c2qDmgHY6zt7bGgWWmnTvpG6VoTyse',
});

async function put() {
  try {
    const result = await client.put('oss-test.png', './oss-test.png');
    console.log(result);
  } catch (e) {
    console.log(e);
  }
}

put();
